package com.example.his.api.mis.controller.form.appointment;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UpdateAppointmentStatusByUuidForm {
  
  @NotBlank(message = "uuid不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9]{32}$", message = "uuid格式错误")
  private String uuid;
  
  @NotNull(message = "status不能为空")
  @Range(min = 1, max = 4, message = "status范围错误")
  private Integer status;
  
}
